package parts4.lesson45;

public class Person {
    public Person(){
        System.out.println("我来了");
    }

    @Override
    protected void finalize() throws Throwable {
        System.out.println("要被销毁了");
        //下面即便抛异常也是不会被执行的
        throw new Exception("我还要再活500年");
    }
}
